<?php
namespace Home\Controller;

use Think\Controller;

class IndexController extends Controller
{
    public function index()
    {
        if(IS_POST)
        {
            $data = qiniuOss($_FILES['file'], $bucket='app' , $uri = 'http://101.200.86.240/qiniu/upload');
            $this->ajaxReturn($data);
        }
        $this->display();
    }
}